package com.zhiyume.api.vo;

import com.zhiyume.page.PageReq;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Created by wang on 17/10/23.
 */
public class PersonReq extends PageReq {

    private int gender=-1;

    private int height=-1;

    private String title;

    @DateTimeFormat(pattern="yyyy")
    private Date birthBegin;
    @DateTimeFormat(pattern="yyyy")
    private Date birthEnd;

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Date getBirthBegin() {
        return birthBegin;
    }

    public void setBirthBegin(Date birthBegin) {
        this.birthBegin = birthBegin;
    }

    public Date getBirthEnd() {
        return birthEnd;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setBirthEnd(Date birthEnd) {
        this.birthEnd = birthEnd;
    }

    @Override
    public String toString() {
        return "PersonReq{" +
                "gender=" + gender +
                ", height=" + height +
                ", title='" + title + '\'' +
                ", birthBegin=" + birthBegin +
                ", birthEnd=" + birthEnd +
                "} " + super.toString();
    }
}
